
helm repo add koderover https://koderover.tencentcloudcr.com/chartrepo/chart
export domain='zadig.youling.io'
export namespace='zadig'
# export ingressClass='nginx' # traefik
export ingressClass='nginx'
export version="1.13.0" # --version=$version
helm upgrade --install $namespace  --create-namespace --namespace $namespace   koderover/zadig  --set endpoint.type=FQDN --set endpoint.FQDN=$domain \
--set global.extensions.extAuth.extauthzServerRef.namespace=${namespace} \
--set "dex.config.staticClients[0].redirectURIs[0]=http://${domain}/api/v1/callback,dex.config.staticClients[0].id=zadig,dex.config.staticClients[0].name=zadig,dex.config.staticClients[0].secret=ZXhhbXBsZS1hcHAtc2VjcmV0" \
--set tags.ingressController=false \
--set ingress-nginx.controller.ingressClass=$ingressClass \

# helm upgrade --install --create-namespace -n zadig --set global.extensions.extAuth.extauthzServerRef.namespace=zadig --set endpoint.type=FQDN --set endpoint.FQDN=zadig.youling.io --set dex.fullnameOverride=zadig-zadig-dex --set dex.config.issuer=http://zadig-zadig-dex:5556/dex --set "dex.config.staticClients[0].redirectURIs[0]=http://zadig.youling.io/api/v1/callback,dex.config.staticClients[0].id=zadig,dex.config.staticClients[0].name=zadig,dex.config.staticClients[0].secret=ZXhhbXBsZS1hcHAtc2VjcmV0"  --set init.adminPassword=zadig --set init.adminEmail=16866120@qq.com --set mysql.persistence.pv=true --set tags.mysql=true --set mysql.primary.persistence.size=20Gi --set mongodb.persistence.pv=true --set mongodb.db=zadig --set tags.mongodb=true --set mongodb.persistence.size=20Gi --set minio.persistence.pv=true  --set tags.minio=true --set minio.persistence.size=20Gi --set tags.ingressController=false --set ingress-nginx.controller.ingressClass=nginx --version=1.12.0 zadig-zadig koderover-chart/zadig